﻿using System;
using System.Collections.Generic;
 
using System.Text;

namespace GGSharp.Packets
{
    public class GenericPacket : HeaderPacket
    {
        protected int _realType;
        protected byte[] _data;

        public GenericPacket(int realType)
        {
            _realType = realType;
            this.Type = PacketType.GG_UNKNOWN;
        }

        public byte[] Data
        {
            get { return _data; }
        }

        public int RealType
        {
            get { return _realType; }
        }

        public override void Read(System.IO.BinaryReader reader)
        {
            base.Read(reader);

            _data = reader.ReadBytes(this.Length);
        }
    }
}
